<?php
/**
 * 启动过程使用的 公共函数
 */
function newstripos($str, $find, $count, $offset=0)
{
$pos = stripos($str, $find, $offset);
$count--;
if ($count > 0 && $pos !== FALSE)
{
$pos = newstripos($str, $find ,$count, $pos+1);
}
return $pos;
}

function ajaxReturn($data){
	header('Content-Type:application/json; charset=utf-8');
	exit(json_encode($data));
}